﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace puzzle
{
    public class WarperTile
    {
        public Tile Tile1 { get; set; }
        public Tile Tile2 { get; set; }

        public WarperTile(Tile t1, Tile t2)
        {
            Tile1 = t1;
            Tile2 = t2;
        }

        public Tile getWarpEnd(Tile tile){
            if (tile == Tile1){
                return Tile2;
            } else if (tile == Tile2){
                return Tile1;
            } else
                return null;
        }
    }
}
